package cn.gyx.hrm.constants;

public enum ErrorCode {
    LOGIN_USERNAME_IS_NULL ("100001","用户名不可为空"), // 用户名为空
    LOGIN_PASSWORD_IS_NULL ("100002","密码不可为空"),
    TENANT_IS_NULL ("100003","公司不可为空"),
    SYSTEM_INNER_EXCEPTION("100500","啊，系统异常啦，我们正在殴打程序员...");

    private String code;
    private String mes;

    ErrorCode(String code, String mes) {
        this.code = code;
        this.mes = mes;
    }
    // 返回获取完整的错误信息
    public  String getFullMes() {
        return this.mes+"["+this.getCode()+"]";
    }
    public String getCode() {
        return code;
    }
    public String getMes() {
        return mes;
    }
}
